package com.atguigu.yygh.apartment.repository;


import com.atguigu.yygh.model.hosp.Chamber;
import com.atguigu.yygh.model.hosp.StudentInfo;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentInfoRepository extends MongoRepository<StudentInfo,String> {
    StudentInfo getStudentInfoByApartmentCodeAndChamberCode(String apartmentCode, String chamberCode);

    List<StudentInfo> findStudentInfoByApartmentCodeAndChamberCode(String apartmentCode, String chamberCode);


    StudentInfo getStudentInfoByApartmentCodeAndChamberCodeAndBedId(String apartmentCode, String chamberCode, String bedId);

    StudentInfo getStudentInfoByApartmentCodeAndId(String apartmentCode, String bedId);

    StudentInfo getStudentInfoById(String bedId);

    StudentInfo getStudentInfoByStuCode(String certificatesNo);
}
